-- treasure
-- created by panyl
-- 地牢格子：海盗的宝藏

return {
    restoreGrid = function(grid, info)
        -- do nothing
    end,

    -- 收集上下文
    collectContext = function(grid)
        return {};
    end,

    autoFight = function(grid)
        local pos = grid:getPos();
        if TreasureM.canTakeBonus(pos) then
            return DungeonActionM.go("treasure_bonus", pos);
        end
        return false;
    end
};
